﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Base.Master" AutoEventWireup="true"
    CodeBehind="openWindow.aspx.cs" Inherits="QuickLifeHall.ERP.Pages.SamplePages.openWindow" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function _add() {
            showWindow({
                title: '新窗口测试',
                url: '/pages/SamplePages/NewWindow.aspx?data=' + encodeUrlParam({ UserID: 1, UserName: 'admin' }),
                width: 500,
                height: 300,
                param: { UserID: 1, UserName: 'admin' },
                onClose: function (result) {
                    //alert(this.title);
                    //alert(result.UserName);
                }
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tb" class="toolbar">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add" plain="true"
            onclick="_add()">新增</a> 
    </div>
</asp:Content>
